﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="NewProduct.aspx.cs" Inherits="Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:GridView ID="GridView1" runat="server" DataSourceID="SPNewProduct" Width="563px"
        AllowPaging="True" CellPadding="4" AutoGenerateColumns="False" ForeColor="#333333"
        GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:ImageField DataImageUrlField="Image" DataImageUrlFormatString="~/Images/SanPham/{0}"
                HeaderText="Ảnh Bìa" SortExpression="Image">
                <ControlStyle Height="100px" Width="100px" />
            </asp:ImageField>
            <asp:BoundField DataField="Name" HeaderText="Tên Sản Phẩm" SortExpression="Name" />
            <asp:BoundField DataField="Name1" HeaderText="Tên Thể Loại" SortExpression="Name1" />
            <asp:BoundField DataField="RetailPrice" HeaderText="Giá Bán" SortExpression="RetailPrice" />
            <asp:BoundField DataField="Ten" HeaderText="Tên Tác Gỉa" SortExpression="Ten" />
            <asp:BoundField DataField="Ten1" HeaderText="Tên Nhà XB" SortExpression="Ten1" />
        </Columns>
        <EditRowStyle BackColor="#7C6F57" />
        <FooterStyle BackColor="#66929D" ForeColor="White" Font-Bold="True" />
        <HeaderStyle BackColor="#66929D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#66929D" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#E3EAEB" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F8FAFA" />
        <SortedAscendingHeaderStyle BackColor="#246B61" />
        <SortedDescendingCellStyle BackColor="#D4DFE1" />
        <SortedDescendingHeaderStyle BackColor="#15524A" />
    </asp:GridView>
    <asp:SqlDataSource ID="SPNewProduct" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SP_NewProduct" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
</asp:Content>
